package com.itheima.day14.ZuoYe.ZuoYe3;

import cn.hutool.core.date.DateTime;

import java.time.LocalDateTime;
import java.util.Objects;

public class Stus {
    private long id;
    private String name;
    private String sex;
    private LocalDateTime times;
    private String place;

    @Override
    public String toString() {
        return "Stus{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", times=" + times +
                ", place='" + place + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Stus stus = (Stus) o;
        return id == stus.id && Objects.equals(name, stus.name) && Objects.equals(sex, stus.sex) && Objects.equals(times, stus.times) && Objects.equals(place, stus.place);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, sex, times, place);
    }

    public Stus(long id, String name, String sex, LocalDateTime times, String place) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.times = times;
        this.place = place;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public LocalDateTime getTimes() {
        return times;
    }

    public void setTimes(LocalDateTime times) {
        this.times = times;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }
}
